import request from "./request";

//分类

export const getCategorys = (params = {}) =>
  request.get("/category/list", { params });

export const saveOrUpdateCategory = (data) => request.post("/category", data);

export const deleteCategory = (data = []) =>
  request.delete("/category", { data });

export const getCategoryOption = () => request.get("/category/option");
